package com.uu.ssm.constants;

/**
 * constant class
 * @author yangx
 * @version V1.0
 */
public class Constants {

    /* view name : login */
    public static final String VIEW_LOGIN = "login";

    /* view name : register */
    public static final String VIEW_REGISTER = "register";

    /* view name : success */
    public static final String VIEW_SUCCESS = "success";

    /* login action */
    public static final String ACTION_LOGIN = "login.action";

    /* register action */
    public static final String ACTION_REGISTER = "register.action";

    /* register success action */
    public static final String ACTION_REGISTER_SUCCESS = "registerSuccess.action";

    /* login success action */
    public static final String ACTION_LOGIN_SUCCESS = "loginSuccess.action";

    /* update worker action */
    public static final String ACTION_UPDATE_WORKER = "updateWorker.action";

    /* delete worker action */
    public static final String ACTION_DELETE_WORKER = "deleteWorker.action";

    /* number minus one */
    public static final int NUM_MINUS_ONE = -1;

    /* number minus two */
    public static final int NUM_MINUS_TWO = -2;

    /* register view message key */
    public static final String MESSAGE_KEY_INSERT = "message";

    /* register view message info - null */
    public static final String MESSAGE_INFO_INSERT_NULL
            = "Registration failed. Please enter username and password.";

    /* register view message info - exist */
    public static final String MESSAGE_INFO_INSERT_EXIST
            = "Registration failed. The username has already been register.";

    /* login view message info */
    public static final String MESSAGE_INFO_LOGIN
            = "Login failed. Please check your username and password.";

    /* success view jsp list */
    public static final String WORKER_LIST = "list";

}
